﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuildPlannerLib.Buildings
{
    // Derived class from Building for CC/Hatch/Nexi
    public abstract class MainBuilding : Building
    {
        // List field for individual production buildings
        public List<IndividualMainBuilding> IndividualMainBuildings;

        // Overrides GetCount() to return the number of objects in the IndividualMainBuildings list
        public override int GetCount()
        {
            return IndividualMainBuildings.Count();
        }

        // Overrides Reset() to clear the IndividualMainBuildings list
        public override void Reset()
        {
            IndividualMainBuildings.Clear();
            AddBuilding();
            Started = 1;
        }
    }
}
